package com.tqjc.system.C24012.common.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @Author: 86195
 * @CreateTime: 2024-07-02  15:29
 * @Description: TODO
 * @Version: 1.0
 */
@TableName("tqjc_zy_steel_part_info")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SysSteelPartEntity {

    //主键
    private Long id;

    //长度
    private Integer steelLength;

    //厚度
    private Integer steelThick;

    //宽度
    private Integer steelWidth;

    //零件号
    private String partNo;

    //钢件号
    private String componentNo;

    //垛位ID
    private Long areaId;

    //钢件状态
    private String status;

    //所在层数
    private Integer layer;

    //入库关联任务主键
    private Long inTaskRelationId;

    //出库关联任务主键
    private Long outTaskRelationId;

    //入库时间
    @JSONField( format = "yyyy-MM-dd HH:mm:ss")
    private Date inTime;

    //出库时间
    @JSONField(format ="yyyy-MM-dd HH:mm:ss")
    private Date outTime;

    //垛位名称
    private String areaName;


    @TableField(value="CREATE_NAME", fill= FieldFill.INSERT)
    private String createName;

    @TableField(value="CREATE_DATE", fill=FieldFill.INSERT)
    private LocalDateTime createDate;

    @TableField(value="UPDATE_NAME", fill=FieldFill.UPDATE)
    private String updateName;

    @TableField(value="UPDATE_DATE", fill=FieldFill.UPDATE)
    private LocalDateTime updateDate;

}
